package com.iflysse.dao;

import com.iflysse.pojo.po.common.CommonPoResp;
import com.iflysse.pojo.po.req.AddResourceHtmlPoReq;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Options;
import org.springframework.stereotype.Repository;

import javax.annotation.Resource;
import java.sql.SQLException;

/**
 * html资源dao
 */
@Repository
public interface ResourceHtmlDao {
    /**
     * 添加html资源
     * @param addResourceHtmlPoReq html资源请求对象
     * @return
     */
    @Insert({"insert into tb_resource_html (resource_id,resource_content) values (UUID(),#{resourceContent})" })
    @Options(useGeneratedKeys = true, keyProperty = "resource_id")
    int addResourceHtml(AddResourceHtmlPoReq addResourceHtmlPoReq) throws SQLException;
}
